package com.hkemmm.shop.service.impl;

import com.hkemmm.shop.dao.CarMapper;
import com.hkemmm.shop.entity.Car;
import com.hkemmm.shop.service.ICarService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CarService implements ICarService {
    @Autowired
    private CarMapper carMapper;


    @Override
    public int insertSelective(Car record) {
        return carMapper.insertSelective(record);
    }

    @Override
    public Car existGoods(Car car) {
        return carMapper.existGoods(car);
    }

    @Override
    public int updateByPrimaryKeySelective(Car record) {
        return carMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public List<Car> CarInfo(Integer userId) {
        return carMapper.CarInfo(userId);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return carMapper.deleteByPrimaryKey(id);
    }
}
